home *** CD-ROM | disk | FTP | other *** search
- ## load_ftp_service
- # Load the FTP service described in the registry key:
- # Software\\Tomasello Software\\WinCron\\services\ftp"
- # This entry must have a key named "library" that has a value which is the name of the
- # DLL to load to implement the service.
- # Other optional keys are "module" and "path"
- {
- -name load_ftp_service
- -start
- -stop
-
- # load the actual service library
- -action -print Loading FTP Service...
- -action -onerror load_fail
- -action -load -service ftp
-
- # call the meta function to get the DLL version information
- -action -onerror version_fail
- -action -ftp FTP.VERSION
- -action -print %FTP.VERSION%
- }
-
- # load service failed
- {
- -name load_fail
- -action -print Loading the FTP service failed with error:
- -action -print %TG.LAST_ERROR%
- -action -return abort
- }
-
- # get version failed
- {
- -name version_fail
- -action -print FTP Library did not implement the standard version call:
- -action -print %TG.LAST_ERROR%
- -action -return abort
- }
-